// dropdown.scss
.x-dropdown {
    position: absolute;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 0 6px rgba(0, 0, 0, 0.04);
    background: #fff;
    border-radius: 4px;
    padding: 8px 0;
    user-select: none;
    border: 1px solid rgba(67, 64, 64, 0.175);
    cursor: default;
    z-index: 9999;
    min-width: 180px;
    &-body {
        display: block;
    }

    &-item {
        color: #606266;
        display: flex;
        align-items: left;
        padding: 0.2rem 1rem;
        margin: 0;
        font-size: 12px;
        outline: 0;
        transition: 0.2s;
        box-sizing: border-box;
        list-style: none;
        border-bottom: 1px solid transparent;
        cursor: default;
        min-width: 160px;
        justify-content: center; // 水平居中
        align-items: center; // 垂直居中


        &:hover {
            background-color: #f5f5f5; // 添加 hover 背景色
        }

        &.devided {
            border-top: 1px solid rgba(0, 0, 0, 0.08);
            margin-top: 2px;
            margin-bottom: 2px;
        }

        &-icon {
            flex-shrink: 0;
            padding: 0.2rem 0.2rem;
            margin-right: 8px;
        }

        &-label {
            white-space: nowrap;
            margin-right: 16px;
            text-align: left; // 确保文字左对齐
            overflow: hidden;
            min-width: 60px;
        }

        &-content {
            flex: 1;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            margin-right: 16px;
            text-align: left; // 确保内容左对齐
        }

        &-suffix {
            flex-shrink: 0;
            margin-left: 8px;
            width: 20px; // 固定箭头的宽度
            text-align: right; // 箭头右对齐
        }
    }
}